package com.xw.lianshou.ieke;

/**
 * String 数组的生成
 * @author xw
 * @date 2021/6/16 23:24
 */
public class Demo2 {
    public static void main(String[] args) {
        String[] name = new String[3];
        name[0] = "name1";
        name[1] = "name2";
        name[2] = "name3";

        for (int i = 0; i < 3; i++) {
            System.out.println(name[i]);
        }
    }
}
